class Customer:
    def __init__(self, name,contact,deliveryAddress,active):
        self.name = name
        self.contact = contact
        self.deliveryAddress = deliveryAddress
        self.active = active

class Order():
    def __init__(self,createDate,status,OrderDetail):
        self.createDate = createDate
        self.status = status
        self.OrderDetail = OrderDetail


class OrderDetail:
    def __init__(self,quantity,product,payment):
        self.quantity = quantity
        self.product = product
        self.payment = payment

    def calculateSubTotal(self):
        return self.quantity

    def calculateWeight(self):
        return self.quantity*self.product.weight

class Produnct:
    def __init__(self,title,weight,description,price):
        self.title = title
        self.weight = weight
        self.description = description
        self.price = price

    def getPriceForQuantity(self):
        return self.price

    def getweight(self):
        return self.weight

class Payment():
    def __init__(self,amount,fangshi):
        self.amount = amount
        self.fangshi = fangshi

class WireTransfer:
    def __init__(self,BankId,bankName):
        self.BankId = BankId
        self.bankName = bankName

class Cash:
    def __init__(self,cashtendered):
        self.cash = cashtendered

class Credit:
    def __init__(self,number,type,expireDate):
        self.number = number
        self.type = type
        self.expireDate = expireDate

class WeixinPay:
    def __init__(self,number):
        self.number = number

class AliPay:
    def __init__(self,number):
        self.number = number
